package com.xydpeng.tech.order.service.order.statemachine.eventhandler;

import com.alibaba.cola.statemachine.Action;
import com.alibaba.cola.statemachine.Condition;
import com.xydpeng.tech.order.enums.OrderStatusEnum;
import com.xydpeng.tech.order.service.order.statemachine.OrderContext;
import com.xydpeng.tech.order.service.order.statemachine.OrderEvent;

/**
 * @version v1.0
 * @author xydpeng
 * @date: 2024/12/18
 * @description:
 */
public interface EventHandler {

    Condition<OrderContext> checkCondition();

    Action<OrderStatusEnum, OrderEvent, OrderContext> doAction();
}
